<?php 
	$perfil = $this->session->userdata('perfil');
	$idUsuario = $this->session->userdata('id_usuario');
	
	echo '<div class="post" style="border-width:1px; padding:10px; border-style:solid; border-color:gray; border-radius:10px; -moz-border-radius:10px; -webkit-border-radius:10px; ">';
	?>
	<strong>Comentarios de <?php echo $user_nom;?>: </strong></br></br></br>
	
	<?php $i = 1;
	foreach ($comments as $value) 
	{
		$com[$i] = $value;
		$i++;
	}
	$i = 1;
	foreach ($fechas as $value) 
	{
		$fec[$i] = $value;
		$i++;
	} 
	$i = 1;
	foreach ($eventos as $value) 
	{
		 //echo '<a href="'.base_url().'index.php/'.$perfil.'/user_comments/'.$evento["id_evento"].'">holaaa</a>';
		echo '<strong>('.$fec[$i].') Opinión de '.$value.':</strong></p>'; 
		echo $com[$i]; 
		$i++; ?> </br></br></br> <?php 

	}?><?php 
	echo '<p class="button-style"><a href="'.base_url().'index.php/'.$perfil.'/show_comments/'.$evento.'">Volver</a></p>';
	echo '</div>';
	echo '</br>';

?>